<HTML>
<HEAD>
<meta charset="UTF-8">
<title>CharactersFavoriteTouchHelper - features/characters_favorites</title>
<link rel="stylesheet" href="../../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">features/characters_favorites</a>&nbsp;/&nbsp;<a href="../index.html">com.vmadalin.dynamicfeatures.charactersfavorites.ui.favorite.adapter</a>&nbsp;/&nbsp;<a href="./index.html">CharactersFavoriteTouchHelper</a><br/>
<br/>
<h1>CharactersFavoriteTouchHelper</h1>
<code><span class="keyword">class </span><span class="identifier">CharactersFavoriteTouchHelper</span>&nbsp;<span class="symbol">:</span>&nbsp;<span class="identifier">SimpleCallback</span></code>
<p>Helper class customize touch behavior per <a href="#">RecyclerView.ViewHolder</a> allowing to swipe.</p>
<p><strong>See Also</strong><br/>
<p><a href="#">ItemTouchHelper.SimpleCallback</a></p>
</p>
<h3>Constructors</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="-init-.html">&lt;init&gt;</a></h4>
</td>
<td>
<p>Helper class customize touch behavior per <a href="#">RecyclerView.ViewHolder</a> allowing to swipe.</p>
<code><span class="identifier">CharactersFavoriteTouchHelper</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.dynamicfeatures.charactersfavorites.ui.favorite.adapter.CharactersFavoriteTouchHelper$<init>(kotlin.Function1((kotlin.Int, kotlin.Unit)))/onSwiped">onSwiped</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span></code></td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="on-move.html">onMove</a></h4>
</td>
<td>
<p>Called when ItemTouchHelper wants to move the dragged item from its old position to
the new position.</p>
<code><span class="keyword">fun </span><span class="identifier">onMove</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.dynamicfeatures.charactersfavorites.ui.favorite.adapter.CharactersFavoriteTouchHelper$onMove(androidx.recyclerview.widget.RecyclerView, androidx.recyclerview.widget.RecyclerView.ViewHolder, androidx.recyclerview.widget.RecyclerView.ViewHolder)/recyclerView">recyclerView</span><span class="symbol">:</span>&nbsp;<span class="identifier">RecyclerView</span><span class="symbol">, </span><span class="identifier" id="com.vmadalin.dynamicfeatures.charactersfavorites.ui.favorite.adapter.CharactersFavoriteTouchHelper$onMove(androidx.recyclerview.widget.RecyclerView, androidx.recyclerview.widget.RecyclerView.ViewHolder, androidx.recyclerview.widget.RecyclerView.ViewHolder)/viewHolder">viewHolder</span><span class="symbol">:</span>&nbsp;<span class="identifier">ViewHolder</span><span class="symbol">, </span><span class="identifier" id="com.vmadalin.dynamicfeatures.charactersfavorites.ui.favorite.adapter.CharactersFavoriteTouchHelper$onMove(androidx.recyclerview.widget.RecyclerView, androidx.recyclerview.widget.RecyclerView.ViewHolder, androidx.recyclerview.widget.RecyclerView.ViewHolder)/target">target</span><span class="symbol">:</span>&nbsp;<span class="identifier">ViewHolder</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="on-swiped.html">onSwiped</a></h4>
</td>
<td>
<p>Called when a ViewHolder is swiped by the user.</p>
<code><span class="keyword">fun </span><span class="identifier">onSwiped</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.dynamicfeatures.charactersfavorites.ui.favorite.adapter.CharactersFavoriteTouchHelper$onSwiped(androidx.recyclerview.widget.RecyclerView.ViewHolder, kotlin.Int)/viewHolder">viewHolder</span><span class="symbol">:</span>&nbsp;<span class="identifier">ViewHolder</span><span class="symbol">, </span><span class="identifier" id="com.vmadalin.dynamicfeatures.charactersfavorites.ui.favorite.adapter.CharactersFavoriteTouchHelper$onSwiped(androidx.recyclerview.widget.RecyclerView.ViewHolder, kotlin.Int)/direction">direction</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
